package com.ilz.publictemplatedemo.base;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.ilz.publictemplatedemo.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public abstract class BaseFragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = LayoutInflater.from(getContext()).inflate(initLayout(), container, false);
        ButterKnife.bind(this,view);
        initData();
        initListener();
        return view;
    }

    protected abstract int initLayout();

    protected abstract void initData();

    protected abstract void initListener();




}
